package com.allwees.support.fileservice.service.impl;

import com.allwees.support.fileservice.config.FileConfig;
import com.allwees.support.fileservice.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * FileService基类
 *
 * @author yangylsky
 */
public abstract class BaseFileService implements FileService {
	@Autowired
	protected FileConfig config;

	@Override
	public boolean isMajor() {
		return config.getMajor().equals(getType());
	}
}
